<!DOCTYPE HTML>
<html>
    
    <head>
        <title>
            支付列表
        </title>
        <meta name="viewport" content="width=device-width, initial-scale=1">
        <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
        <meta name="keywords" content="" />
        <script type="application/x-javascript">
            addEventListener("load",
            function() {
                setTimeout(hideURLbar, 0);
            },
            false);
            function hideURLbar() {
                window.scrollTo(0, 1);
            }
        </script>
        <!-- Bootstrap Core CSS -->
        <link href="css/bootstrap.min.css" rel='stylesheet' type='text/css' />
        <!-- Custom CSS -->
        <link href="css/style.css" rel='stylesheet' type='text/css' />
        <link rel="stylesheet" href="css/morris.css" type="text/css" />
        <!-- Graph CSS -->
        <link href="css/font-awesome.css" rel="stylesheet">
        <!-- jQuery -->
        <script src="js/jquery-2.1.4.min.js">
        </script>
        <!-- //jQuery -->
        <!-- tables -->
        <link rel="stylesheet" type="text/css" href="css/table-style.css" />
        <link rel="stylesheet" type="text/css" href="css/basictable.css" />
        <script type="text/javascript" src="js/jquery.basictable.min.js">

        </script>
   
        <script type="text/javascript">
            $(document).ready(function() {
                $('#table').basictable();

                $('#table-breakpoint').basictable({
                    breakpoint: 768
                });

                $('#table-swap-axis').basictable({
                    swapAxis: true
                });

                $('#table-force-off').basictable({
                    forceResponsive: false
                });

                $('#table-no-resize').basictable({
                    noResize: true
                });

                $('#table-two-axis').basictable();

                $('#table-max-height').basictable({
                    tableWrapper: true
                });
            });
        </script>
        <!-- //tables -->
        <link href='http://fonts.googleapis.com/css?family=Roboto:700,500,300,100italic,100,400'
        rel='stylesheet' type='text/css' />
        <link href='http://fonts.googleapis.com/css?family=Montserrat:400,700'
        rel='stylesheet' type='text/css'>
        <!-- lined-icons -->
        <link rel="stylesheet" href="css/icon-font.min.css" type='text/css' />
        <!-- //lined-icons -->
    </head>
    
    <body>
        <div class="page-container">
            <!--/content-inner-->
            <div class="left-content">
                <div class="mother-grid-inner">
                   
                    <ol class="breadcrumb">
                        <li class="breadcrumb-item">
                            <a href="home.php">
                                首页
                            </a>
                            <i class="fa fa-angle-right">
                            </i>
                            支付列表
                        </li>
                    </ol>
                    <!-- 搜索 -->
                   		<form action="pay.php">
 <div class="form-group" style="margin-top: 5px">
                            <label for="exampleInputPassword1">微信：

                             <?php 


                            $a =  $wx-($wx*$agent_info['wx']/100);

                               echo $a>0?$a:0;
                             ?>元</label>
                            <label for="exampleInputPassword1">&nbsp;&nbsp;支付宝： 

                                <?php  

                               $a =  $zfb-($wx*$agent_info['zfb']/100);

                                 echo $a>0?$a:0;
                                ?>元</label>
                            <label for="exampleInputPassword1">&nbsp;&nbsp;商家码：

                             <?php 

                               $a =  $sjm-($wx*$agent_info['sjm']/100);

                               echo $a>0?$a:0;
                            ?>元</label>
                            
                        </div>
                        <div class="form-group">
                            <label for="exampleInputPassword1">订单号</label>
                            <input type="text"  name="gh" id="exampleInputPassword1" placeholder="订单号">
                   

						
						    <label for="exampleInputPassword1">开始日期</label>
						    <input type="date" name="k"  id="exampleInputPassword1" >
					

						
						    <label for="exampleInputPassword1">结束日期</label>
						    <input type="date" name="e" id="exampleInputPassword1">
						
						  
						  <button type="submit" class="btn btn-default" style="background: #1b93e1; color:#fff">查询</button>
  </div>
                       
						</form>

                    	<!-- 搜索 -->
                    <div class="agile-grids">
                    	
                        <!-- tables -->
                        <div class="agile-tables">
                            <div class="w3l-table-info" style="overflow: scroll;height: 70%;">
                               
                                <table id="table">
                                    <thead>
                                        <tr>
                                            <th>
                                                序号
                                            </th>
                                            <th>
                                                订单号
                                            </th>
                                            <th>
                                                充值方式
                                            </th>
                                            <th>
                                                充值时间
                                            </th>
                                            <th>
                                                充值金额
                                            </th>
                                            <th>
                                                充值状态
                                            </th>
                                           
                                        </tr>
                                    </thead>
                                    <tbody>
                                             <?php  foreach($list as $v){?>
                                        <tr>
                                            <td>
                                               <?=$v['id']?>
                                            </td>
                                            <td>
                                               <?=$v['ordernum']?>
                                            </td>
                                            <td>
                                               <?php if($v['class'] == 1) {?>
                                                     微信
                                               <?php }elseif($v['class'] == 2){ ?>
                                                     支付宝

                                               <?php }elseif($v['class'] == 3){ ?>
                                                    商家码
                                               <?php } ?>
                                            </td>
                                            
                                           
                                            <td>
                                                <?=date('Y-m-d H:i:s',$v['pipeitime'])?>
                                            </td>
                                             <td>
                                                <?php if($v['class'] == 1) {?>
                                                    <?=$v['price']-($v['price']*$agent_info['wx']/100)?> 元
                                               <?php }elseif($v['class'] == 2){ ?>
                                                    <?=$v['price']-($v['price']*$agent_info['zfb']/100)?>元

                                               <?php }elseif($v['class'] == 3){ ?>
                                                   <?=$v['price']-($v['price']*$agent_info['sjm']/100)?>元
                                               <?php } ?>
                                            </td>
                                             <td>
                                               已到账
                                            </td>
                                           
                                        </tr>
                                        <?php }?>
                                    </tbody>
                                  <tr>
        <td colspan="6" >
          <?php echo $page->myde_write();?>
        </td>
      </tr>
                                </table>
                            </div>
                            
                          
                         
                        </div>
                        <!-- //tables -->
                    </div>
                    <!-- script-for sticky-nav -->
                    <script>
                        $(document).ready(function() {
                            var navoffeset = $(".header-main").offset().top;
                            $(window).scroll(function() {
                                var scrollpos = $(window).scrollTop();
                                if (scrollpos >= navoffeset) {
                                    $(".header-main").addClass("fixed");
                                } else {
                                    $(".header-main").removeClass("fixed");
                                }
                            });

                        });
                    </script>
                    <!-- /script-for sticky-nav -->
                    <!--inner block start here-->
                    <div class="inner-block">
                    </div>
                    <!--inner block end here-->
                    <!--copy rights start here-->
                   
                    <!--COPY rights end here-->
                </div>
            </div>
            <!--//content-inner-->
            <!--/sidebar-menu-->
            <?php  include('./tpl/nav.php');?>
            <div class="clearfix">
            </div>
        </div>
        <script>
            var toggle = true;

            $(".sidebar-icon").click(function() {
                if (toggle) {
                    $(".page-container").addClass("sidebar-collapsed").removeClass("sidebar-collapsed-back");
                    $("#menu span").css({
                        "position": "absolute"
                    });
                } else {
                    $(".page-container").removeClass("sidebar-collapsed").addClass("sidebar-collapsed-back");
                    setTimeout(function() {
                        $("#menu span").css({
                            "position": "relative"
                        });
                    },
                    400);
                }

                toggle = !toggle;
            });
        </script>
        <!--js -->
        <script src="js/jquery.nicescroll.js">
        </script>
        <script src="js/scripts.js">
        </script>
        <!-- Bootstrap Core JavaScript -->
        <script src="js/bootstrap.min.js">
        </script>
        <!-- /Bootstrap Core JavaScript -->
    </body>

</html>